<div class="dialog-container mdd-dialog mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog B0218_CopyNCCode-dialog c-mdd-page" ng-init="dialog.init();" style="background-color: #fafafa" page-type="Dialog" _transclude-elem="[object Object]">
  <div class="kmi-header-row">
    <div class="header-title" ng-bind="dialog._title | translate"></div>
    <!--More Menu-->

    <!--Close button-->
    <div class="kmi-side-btn right" ng-click="dialog.hide();">
      <img src="image/icons/clear.png" />
      <div class="kmi-can-click"></div>
    </div>
  </div>
  <div class="kmi-layout-main-content" style="flex: 1">
    <!--Page-->
    <div class="kmi-layout-page">
      <div class="mdd-layout__with-toolbar mdd-layout c-mdd-layout" layout-name="B0218_CopyNCCode" page-name="" page-type="Dialog" with-toolbar="Y" reload="N" _transclude-elem="[object Object]" style="grid-template-columns: repeat(2, auto 1fr)">
        <label class="label" ng-show="dialog._event['NCCode'].isShown != 'N'" style="" ng-bind="'B0218_CopyNCCode.columns.NCCode' | translate"></label>
        <div class="value" ng-show="dialog._event['NCCode'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.baseData.NCCode" mdl-toast="{{dialog.baseData.NCCode}}" mdl-toast-passive="true"></label></div>
        <label class="label" ng-show="dialog._event['FileVersion'].isShown != 'N'" style="" ng-bind="'B0218_CopyNCCode.columns.FileVersion' | translate"></label>
        <div class="value" ng-show="dialog._event['FileVersion'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.baseData.FileVersion" mdl-toast="{{dialog.baseData.FileVersion}}" mdl-toast-passive="true"></label></div>
        <div class="mdd-list c-mdd-list" ng-show="dialog._event['list'].isShown != 'N'" style="height:{{dialog._event['B0218_CopyNCCode'].GetfillHeight()}};grid-column-start:span 4;" list-name="B0218_otherDataList" list-bind="dialog.list" list-alias="dialog.otherDataList" enable-select="Y" select-all="Y" page-name="" page-type="Dialog" _transclude-elem="[object Object]">
          <div class="kmi-list column-selector" kmi-scrollbar="1200px" column-selector-id="B0218_otherDataList" style="flex: 1">
            <div class="kmi-list__header">
              <div class="kmi-list__column width-fixed column-input" style="flex: 0 0 40px">
                <button class="mdl-button mdl-js-button mdl-button--icon" ng-click="dialog._event['dialog.list'].selectAll(dialog.otherDataList, 'dialog.list');">
                  <img ng-show="!dialog._event['dialog.list'].isSelectAll" src="image/icons/check0.png" />
                  <img ng-show="dialog._event['dialog.list'].isSelectAll" src="image/icons/check1.png" />
                </button>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.plot_no'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[0].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['plot_no']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[0].isFilter = false;dialog._objlist.filterColumns['plot_no'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[0].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[0].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.plot_no' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 0">{{!dialog._objlist.header[0].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(0, 'plot_no', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.op_no'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[1].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['op_no']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[1].isFilter = false;dialog._objlist.filterColumns['op_no'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[1].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[1].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.op_no' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 1">{{!dialog._objlist.header[1].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(1, 'op_no', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.op_name'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[2].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['op_name']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[2].isFilter = false;dialog._objlist.filterColumns['op_name'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[2].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[2].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.op_name' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 2">{{!dialog._objlist.header[2].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(2, 'op_name', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.product_no'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[3].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['product_no']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[3].isFilter = false;dialog._objlist.filterColumns['product_no'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[3].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[3].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.product_no' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 3">{{!dialog._objlist.header[3].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(3, 'product_no', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.product_name'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[4].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['product_name']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[4].isFilter = false;dialog._objlist.filterColumns['product_name'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[4].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[4].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.product_name' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 4">{{!dialog._objlist.header[4].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(4, 'product_name', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.item_spec'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[5].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['item_spec']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[5].isFilter = false;dialog._objlist.filterColumns['item_spec'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[5].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[5].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.item_spec' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 5">{{!dialog._objlist.header[5].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(5, 'item_spec', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.group_mold_no'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[6].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['group_mold_no']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[6].isFilter = false;dialog._objlist.filterColumns['group_mold_no'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[6].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[6].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.group_mold_no' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 6">{{!dialog._objlist.header[6].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(6, 'group_mold_no', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.mold_no'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[7].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['mold_no']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[7].isFilter = false;dialog._objlist.filterColumns['mold_no'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[7].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[7].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.mold_no' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 7">{{!dialog._objlist.header[7].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(7, 'mold_no', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.check_in_qty'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[8].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['check_in_qty']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[8].isFilter = false;dialog._objlist.filterColumns['check_in_qty'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[8].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[8].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.check_in_qty' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 8">{{!dialog._objlist.header[8].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(8, 'check_in_qty', 'dialog._objlist');"></div>
                </div>
              </div>
              <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.list.NCCode'].isShown != 'N'">
                <div class="filter" ng-show="dialog._objlist.header[9].isFilter">
                  <input ng-model="dialog._objlist.filterColumns['NCCode']" />
                  <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objlist.header[9].isFilter = false;dialog._objlist.filterColumns['NCCode'] = '';">clear</i>
                </div>

                <div class="order" ng-hide="dialog._objlist.header[9].isFilter">
                  <i class="material-icons search" style="z-index: 1" ng-click="dialog._objlist.header[9].isFilter = true">search</i>
                  <label ng-bind="'B0218_otherDataList.columns.NCCode' | translate"></label>
                  <i class="material-icons" ng-show="dialog._objlist.queryOrder == 9">{{!dialog._objlist.header[9].order?'':''}}</i>
                  <div class="kmi-can-click" ng-click="dialog.orderResult(9, 'NCCode', 'dialog._objlist');"></div>
                </div>
              </div>
            </div>
            <div class="kmi-list__row-content">
              <div class="kmi-list__row" id="B0218_otherDataList_result_list" ng-repeat="item in dialog._event['dialog.list'].getPages(dialog.otherDataList, dialog._objlist.PageConfig, dialog._objlist.filterColumns, dialog._objlist.header[dialog._objlist.queryOrder]) track by $index" ng-class="{'is-select':dialog._event['dialog.list'].checkSelect(item, {index:$index, event:$event})}">
                <div class="kmi-list__column column-input" style="flex: 0 0 40px; z-index: 1">
                  <button class="mdl-button mdl-js-button mdl-button--icon" ng-show="dialog._event['dialog.list'].enableSelect(item, 'dialog.list.item');" ng-click="dialog._event['dialog.list'].click(item, {index:$index, event:$event});">
                    <img ng-show="!dialog._event['dialog.list'].checkClick(item, 'dialog.list.item');" src="image/icons/check0.png" />
                    <img ng-show="dialog._event['dialog.list'].checkClick(item, 'dialog.list.item');" src="image/icons/check1.png" />
                  </button>
                </div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.plot_no" ng-if="dialog._event['dialog.list.plot_no'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.op_no" ng-if="dialog._event['dialog.list.op_no'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.op_name" ng-if="dialog._event['dialog.list.op_name'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.product_no" ng-if="dialog._event['dialog.list.product_no'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.product_name" ng-if="dialog._event['dialog.list.product_name'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.item_spec" ng-if="dialog._event['dialog.list.item_spec'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.group_mold_no" ng-if="dialog._event['dialog.list.group_mold_no'].isShown != 'N'"></div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.mold_no" ng-if="dialog._event['dialog.list.mold_no'].isShown != 'N'"></div>
                <div class="kmi-list__column column-input" style="flex: 1; z-index: 1" ng-class="{'column-border':!$last}" ng-show="dialog._event['dialog.list.check_in_qty'].isShown != 'N'">
                  <div class="kmi-text-fields">
                    <input type="text" readonly="" ng-model="item.check_in_qty" ng-click="dialog._event['dialog.list.check_in_qty'].click(item.check_in_qty, {eventScope:item, event:$event, index:$index});" />
                  </div>
                </div>
                <div class="kmi-list__column column-border" style="flex: 1" ng-bind="item.NCCode" ng-if="dialog._event['dialog.list.NCCode'].isShown != 'N'"></div>
                <div class="kmi-can-click" ng-click="dialog._event['dialog.list'].rowClick(item, {index:$index, event:$event});"></div>
              </div>
            </div>
          </div>
          <div class="page-content">
            <div class="page-icon">
              <img src="image/icons/dropleft.png" />
              <div class="kmi-can-click" ng-click="dialog.prevPage(dialog._objlist.PageConfig);"></div>
            </div>
            <label ng-bind="dialog.pageInfo(dialog._objlist.PageConfig);"></label>
            <div class="page-icon">
              <img src="image/icons/dropright.png" />
              <div class="kmi-can-click" ng-click="dialog.nextPage(dialog._objlist.PageConfig);"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="mdd-button-tool">
        <div class="tool-bar"></div>
        <div class="tool-bar" style="justify-content: flex-end">
          <div class="kmi-button kmi-button-confrim btn-confirm" ng-disabled="dialog._fn['Execute'].isDisabled == 'Y'" ng-hide="dialog._fn['Execute'].isShown == 'N'" style="width: 100px">
            <label ng-bind="'common.btn.confirm' | translate"></label>
            <div class="kmi-can-click" ng-click="dialog._fn['Execute'].click('Execute');"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
